<template>
  <div class="box">
    <div class="left" @click="back">
      <Icon type="ios-arrow-back"/>
    </div>
    <div>{{ title }}</div>
    <div class="right">
      <!--      <Icon type="ios-arrow-back"/>-->
    </div>

  </div>
</template>

<script>
export default {
  name: "TopBar.vue",
  methods: {
    back() {
      this.$router.back()
    }
  },
  props: {
    title: String,
  }
}
</script>

<style scoped>
.box {
  display: flex;
  justify-content: space-between;
  /*background-color: #FFFFFF;*/
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #EEEEEE;
  padding: 0 20px;
  font-size: 16px;
}

.left, .right {
  width: 30px;
  font-size: 24px;
}

.right {
  text-align: right;
}
</style>
